<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>hidtory 객체</title>
<script type="text/javascript">
	window.onload = function(){
		window.moveCount = 0;
	}
	
	function goBack() {
		history.go(-window.moveCount);
		window.moveCount = 0;
	}
</script>
</head>
<body>
	<button type="button" onclick="goBack();">제자리로</button><br />
	<a href="innerFrame.html?page=1" target="iframe">이동 1페이지</a><br />
	<a href="innerFrame.html?page=2" target="iframe">이동 2페이지</a><br />
	<a href="innerFrame.html?page=3" target="iframe">이동 3페이지</a><br />
	<a href="innerFrame.html?page=4" target="iframe">이동 4페이지</a><br />
	<a href="innerFrame.html?page=5" target="iframe">이동 5페이지</a><br />
	<a href="innerFrame.html?page=6" target="iframe">이동 6페이지</a><br />
	<a href="innerFrame.html?page=7" target="iframe">이동 7페이지</a><br />
	<iframe name="iframe" src="about:blank" width="200" height="200"></iframe>
</body>
</html>
